home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / et / et3_0-a1.lha / et3 / src / PictureItem.h < prev    next >
C/C++ Source or Header  |  1992-04-27  |  826b  |  38 lines

  1. #ifndef PictureItem_First
  2. #ifdef __GNUG__
  3. //pragma once
  4. #pragma interface
  5. #endif
  6. #define PictureItem_First
  7.  
  8. #include "VObject.h"
  9.  
  10. //---- PictureItem ---------------------------------------------------------------
  11.  
  12. class PictureItem : public VObject {
  13. protected:
  14.     Picture *pic;
  15.     short base;
  16.     bool deletePicture;
  17. public:
  18.     MetaDef(PictureItem);
  19.  
  20.     PictureItem(Picture *b, int base= 0, bool freeold= FALSE);
  21.     PictureItem(int id, Picture *b, int base= 0, bool freeold= FALSE);
  22.     ~PictureItem();
  23.  
  24.     void SetPicture(Picture *bm, bool redraw= TRUE);
  25.     Picture *GetPicture()
  26.     { return pic; }
  27.     Metric GetMinSize();
  28.     void SetBase(int b)
  29.     { base= b; }
  30.     void Draw(Rectangle);
  31.     void DoObserve(int, int part, void*, Object *op);
  32.     OStream& PrintOn(OStream&);
  33.     IStream& ReadFrom(IStream&);
  34. };
  35.  
  36. #endif
  37.  
  38.